package com.gthncz;

import java.io.IOException;

public class ExceptionDemo {

    public static void main(String[] args) {
        try {
            System.out.println("hi");
        } catch (RuntimeException e) {

        }
        //  catch (IOException e), 编译不通过, 因为这是受检异常, 而代码块永远不会抛出 IOException.
        //  Error:(12, 11) java: exception java.io.IOException is never thrown in body of corresponding try statement
    }

}
